package threadpool;

/**
 * ClassName: Every
 * Package: threadpool
 *
 * @Author 马学兴
 * @Create 2024/3/13 23:32
 * @Version 1.0
 * Description:
 */
public class EveryTaskOneThread {

    static class Task implements Runnable{

        @Override
        public void run() {
            System.out.println("执行任务");
        }
    }
    public static void main(String[] args) {
        for (int i = 0; i < 10; i++) {
            Thread thread = new Thread(new Task());
            thread.start();
        }

    }
}
